<template>
    <div>
        <ul>
            <li v-for="item in menu_left" :key="item.id">
                <router-link to="EditMenu"><span>{{item.name}}</span></router-link>
            </li> 
        </ul>
    </div>
</template>
<script>
export default {
    name: "left",
    props: ["value"],
    data: function () {
        return {
            valueContent: 'left',
            menu_left : []
        }
    },
    methods : {
        set_menu : function (nId) {
            this.$http.post("api/menu/menu_two_list",{nId : nId}).then(res => {
                this.menu_left = res.data;
            }, err => {
            })
        }
    },
    created : function () {
        this.set_menu(sessionStorage.getItem('nId'));
    }
}
</script>
<style>
</style>

